Skip to content

fixtures: deprecate calling request.getfixturevalue() during teardown#14295

Merged
bluetech merged 2 commits intopytest-dev:mainfrom
bluetech:deprecate-getfixturevalue-teardown
Mar 20, 2026
Merged

fixtures: deprecate calling request.getfixturevalue() during teardown#14295
bluetech merged 2 commits intopytest-dev:mainfrom
bluetech:deprecate-getfixturevalue-teardown

Conversation

@bluetech
Copy link
Member

on a fixture that hasn't already been requested.

Fix #12882.

The first commit is needed for the $subject change.

…ssage

In this case let's just show the test function.
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Mar 16, 2026
themavik

This comment was marked as spam.

@bluetech bluetech merged commit 12558b5 into pytest-dev:main Mar 20, 2026
32 checks passed
@bluetech bluetech deleted the deprecate-getfixturevalue-teardown branch March 20, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing AssertionError when using request.getfixturevalue with new fixture during teardown

4 participants